package com.unhz.generator.dao;


import com.unhz.generator.pojo.Order;
import com.unhz.generator.vo.OrderVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
/**
 * @Author: 王林恩
 * @Description: 订单表
 * @Date: Created in 上午 9:09 2018/1/29 0029
 * @Modified By:
 */
@Repository
public interface OrderMapper extends BaseMapper<Order>{

    int deleteByPrimaryKey(Integer id);

    int insertSelective(Order record);

    int updateByPrimaryKeySelective(Order record);

    int getTotalRecordsByKeywords(@Param("keywords") String keywords);

    List<OrderVo> selectOrderByAdmin(Map<String,Object> map);

    OrderVo findOrderById(@Param("orderId") Integer orderId);

    Order selectOrderById(@Param("orderId") Integer orderId);

    int finishDock(@Param("orderId") Integer orderId);

    void keyPass(Order order);

    int selectSomeTotalRecordsByKeywords(@Param("adminId") Integer adminId,@Param("keywords") String keywords);

    List<OrderVo> selectOrderByAdminId(Map<String,Object> map);

    int confirmContract(@Param("orderId") Integer orderId);

    List<Order> selectOrder(@Param("userId") Integer userId);

}